package com.wondertek.service.dto.sys.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
;

/**
 * @author xqs
 */
@Data
public class SysUserUpdatePasswordReq {

    @NotBlank(message = "old.password.not.null")
    @Schema(name = "oldPassword", description = "旧密码")
    private String oldPassword;

    @NotBlank(message = "new.password.not.null")
    @Pattern(regexp = "^(?=.*[a-zA-Z])(?=.*\\d).{8,20}", message = "password.length")
    @Schema(name = "newPassword", description = "新密码")
    private String newPassword;
    ;

}
